'use strict';
import React from 'react'
import { AppNavigationContainer } from './RouterConfig'

// 高阶导航，继承PureComponent
class Navigation extends React.PureComponent {

    constructor(props) {
        super(props)

    }

    _onNavigationStateChange = (prevState, newState, action) => {
        // console.log('_onNavigationStateChange', prevState, newState, action)
        // console.log('zz', this.navigatorRef._navigation)

    }

    _captureRef = (v) => {
        this.navigatorRef = v
        // console.log('_captureRef', this.navigatorRef)
    }

    render() {
        // console.log('')
        return (
            <AppNavigationContainer
                ref={this._captureRef}
                onNavigationStateChange={this._onNavigationStateChange}
            />
        );
    }
}

export default Navigation;
